<?php
/**
 * Created by PhpStorm.
 * User: wangjiangtao
 * Date: 2021/10/27
 * Time: 12:08
 */

namespace App\Http\Services;

use App\Http\Model\MeetRule;

class MeetRuleServices extends CommonServices
{

    private $model = null;

    public function __construct()
    {
        parent::__construct();
        $this->model = new MeetRule();
    }

    public function insert($data){
        $data['created_at'] = time();
        $data['updated_at'] = time();
        return $this->model->insertBatch($data);
    }

    public function update($id,$data){
        $data['updated_at'] = time();
        return $this->model->updateRule($id,$data);
    }

    public function del($id){
        return $this->model->delRule($id);
    }
}
